<?php
date_default_timezone_set("PRC");

function getNowDate() {return date("Y-m-d H:i:s",time());}

function toTime($date=''){return strtotime($str);}

function toDate($time=''){return date("Y-m-d H:i:s",$time);}